$(function () {
	var select=$("#select").children("input");
    var selectindex=0;
    for(var i=0;i<select.length;i++){
        select[i].index=i;
        addEvent(select[i],"click",function(){
            select.eq(selectindex).removeClass("active");
            selectindex=this.index;
            $(this).addClass("active");
        })
    }
})